package com.sjb.desensitization;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 有点儿意思
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    @Desensitization(type = DesensitizationTypeEnum.MY_RULE,startInclude = 4,endExclude = 7)
    private String userId;

    @Desensitization(type = DesensitizationTypeEnum.MOBIL_PHONE)
    private String phone;

    private String email;
}
